const myUrl = {

  common:{
    urlPrefix:'/guard',//所有请求的公共前缀，在request.js里的创建axios对象时使用
    login:'/login',
    logout:'/vue-admin-template/user/logout',
    download:'/download',
    //上传图片和上传文件是用的el-upload组件发出的请求，不走axios，需要手动加上/guard前缀
    upload:'/guard/upload',
    importFile:'/guard/importFile',
  },

  user:{
    lst:'/user/lst',
    add:'/user/add',
    del:'/user/del',
    detail:'/user/detail',
    change:'/user/change',
  },

  rbac:{
    guardUser:{
      lst:'/rbac/guardUser/lst',
      add:'/rbac/guardUser/add',
      edit:'/rbac/guardUser/edit',
      del:'/rbac/guardUser/del',
      detail:'/rbac/guardUser/detail',
      change:'/rbac/guardUser/change',
      getGuardUser:'/rbac/guardUser/getGuardUser',
      modifyPwd:'/rbac/guardUser/modifyPassword',
      coverPwd:'/rbac/guardUser/coverPassword'
    },
    role:{
      lst:'/rbac/role/lst',
      add:'/rbac/role/add',
      del:'/rbac/role/del',
      detail:'/rbac/role/detail',
      change:'/rbac/role/change',
    },
    permission:{
      lst:'/rbac/permission/lst',
      add:'/rbac/permission/add',
      del:'/rbac/permission/del',
      detail:'/rbac/permission/getPermission',
      change:'/rbac/permission/change',
    },



  }
}

export default myUrl
